﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace inf_1007_devoir3
{
    public class Modele
    {
        private string marque;
        private string modele;
        private int annee;
        private int nbrPlaces;
        private int nbrPortes;
        private int nbrCylindres;
        private double tailleMoteur;
        private string transmission;
        private string traction;
        private double consommation;
        private double coutLocation;
        private string[] groupeOption;
        //constructeur
        public Modele(string _marque, string _modele, int _annee, int _nbrPlaces, int _nbrPortes, int _nbrCylindres, double _tailleMoteur, string _transmission, string _traction, double _consommation, double _coutLocation, string[] _groupeLocation)       
        {
            marque = _marque;
            modele = _modele;
            annee = _annee;
            nbrPlaces = _nbrPlaces;
            nbrPortes = _nbrPortes;
            nbrCylindres = _nbrCylindres;
            tailleMoteur = _tailleMoteur;
            transmission = _transmission;
            traction = _traction;
            consommation = _consommation;
            coutLocation = _coutLocation;
            groupeOption = _groupeLocation;
        }
        //get/set 
        public string getMarque()
        {
            return marque;
        }
        public void setMarque(string value)
        {
            marque = value;
        }

        public string getModele()
        {
            return modele;
        }
        public void setModele(string value)
        {
            modele = value;
        }

        public int getAnnee()
        {
            return annee;
        }
        public void setAnnee(int value)
        {
            annee = value;
        }

        public int getNbrPlaces()
        {
            return nbrPlaces;
        }
        public void setNbrPlaces(int value)
        {
            nbrPlaces = value;
        }

        public int getNbrPortes()
        {
            return nbrPortes;
        }
        public void setNbrPortes(int value)
        {
            nbrPortes = value;
        }

        public int getNbrCylindres()
        {
            return nbrCylindres;
        }
        public void setNbrCylindres(int value)
        {
            nbrCylindres = value;
        }

        public double getTailleMoteur()
        {
            return tailleMoteur;
        }
        public void setTailleMoteur(double value)
        {
            tailleMoteur = value;
        }
   
        public string getTransmission()
        {
            return transmission;
        }
        public void setTransmission(string value)
        {
            transmission = value;
        }

        public string getTraction()
        {
            return traction;
        }
        public void setTraction(string value)
        {
            traction = value;
        }

        public double getConsommation()
        {
            return consommation;
        }
        public void setConsommation(double value)
        {
            consommation = value;
        }

        public double getCoutLocation()
        {
            return coutLocation;
        }
        public void setCoutLocation(double value)
        {
            coutLocation = value;
        }
        //to string
        public override string ToString()
        {
            return annee + " " + marque + " " + modele;
        }
    }
}
